<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>新增用户 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
		{'user_form_head'|fire}
	</head>
	<body>
		<div class="workspace">
			<ul class="nav nav-tabs">
				<li>&nbsp;&nbsp;</li>	
			    <li><a href="./">用户账户列表</a></li>
			    <li><a href="./?Ctlr=AddUser">新增用户</a></li>			    
			    <li class="active"><a href="#">编辑用户:{$uname}</a></li>
		    </ul>
		    {if $page_tip_info}
		    <div class="alert {$alert_cls}">
		        <button class="close" data-dismiss="alert">×</button>
		        {$page_tip_info}
	      	</div>
	      	{/if}
		</div>
		<div>			
			<form class="form-horizontal" id="user-form" method="POST" action="./?Ctlr=SaveUser">
				<input type="hidden" name="uid" id="uid" value="{$uid}"/>
	        	<fieldset>          		
	          		<div class="control-group {$error_cls.uname}">
	          			<label class="control-label" for="uname">用户账户</label>
	            		<div class="controls">
	              			<input type="text" id="uname" name="uname" value="{$uname}">
	              			<span class="help-inline">{$error.uname}</span>
	            		</div>
	          		</div>          
	          		
	          		<div class="control-group {$error_cls.name}">
	            		<label class="control-label" for="name">姓名</label>
	            		<div class="controls">
	              			<input type="text" id="name" name="name" value="{$name}">
	              			<span class="help-inline">{$error.name}</span>
	            		</div>
	          		</div>
	          		<div class="control-group {$error_cls.email}">
	            		<label class="control-label" for="email">邮箱</label>
	            		<div class="controls">
	              			<input type="text" id="email" name="email" value="{$email}">
	              			<span class="help-inline">{$error.email}</span>
	            		</div>
	          		</div>
	          		<div class="control-group">
	            		<label class="control-label" for="status">激活</label>
	            		<div class="controls">
	            			<label class="radio inline" for="status">
	              				<input type="radio" id="status" name="status" value="0" {'0'|checked:$status}>是
	              			</label>
	              			<label class="radio inline" for="status1">
	              				<input type="radio" id="status1" name="status" value="1" {'1'|checked:$status}>否 
	              			</label>      			
	            		</div>
	          		</div>	          		
	          		<div class="control-group">
	            		<label class="control-label" for="passwd">密码</label>
	            		<div class="controls">
	              			<input type="password" name="passwd" id="passwd">
	              			<span class="help-inline">如不需要修改密码，请留空。</span>
	            		</div>
	          		</div>
	          		<div class="control-group">
	            		<label class="control-label" for="passwd1">确认密码</label>
	            		<div class="controls">
	              			<input type="password" name="passwd1" id="passwd1">
	              			<span class="help-inline"></span>
	            		</div>
	          		</div>
	          		{'core_user_form'|fire:$user}
		          	<div class="form-actions">
		            	<button type="submit" class="btn btn-primary">保存</button>
		            	<a href="./" class="btn">取消</a>
		          	</div>
	        	</fieldset>
	      	</form>
      	</div>
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>
		<script type="text/javascript" src="{'plugins/jquery.validate.js'|jquery}"></script>
		<script type="text/javascript" src="user_add.js"></script>
		{'user_form_foot'|fire}
	</body>
</html>